#include <boost/thread/thread.hpp> 
#include <iostream> 

using namespace std;

// method 1
void hello()
{
	cout <<
		"Hello world, I\'m a thread!"
		<< endl;
}

int main(int argc, char* argv[])
{
	boost::thread thrd(&hello);
	thrd.join();
	return 0;
}